package com.longcai.cm.base.bean;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Origin
 */
@Data
public class Pageable {

    private int pageIndex = 0;
    private int pageSize = 10;
    private Map<String, Object> pageSearch;
    private Map<String, Boolean> pageOrderParam;

    public Pageable() {
        super();
    }

    public Pageable(int pageIndex, int pageSize) {
        super();
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
    }

    public Pageable(int pageIndex, int pageSize, Map<String, Object> searchMap, Map<String, Boolean> orderMap) {
        super();
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.pageSearch = searchMap;
        this.pageOrderParam = orderMap;
    }

}
